90511: Function test for xfi:relationship-attribute

Documentation

Tests of function xfi:relationship-attribute($relationship as xfi:relationship.type,$attribute as xs:qname) as xs:anyType? Depends on xfi:concept-relationships function in order to provide the arc for testing this function.

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 12-12-2008 at 00:00:00

References

http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666

Test Case Variations


V-01 Generic relationship arc A->B attribute

Documentation

Inputs

  • schema: test.xsd (DTS Discovery starting point) (ID=V01)
  • Function Call: xfi:relationship-attribute( xfi:concept-relationships( QName('http://abc.com/test','A'), 'http://abc.com/role/test-link-role', 'http://abc.com/arcrole/test-arc-role', 'descendant', xs:nonNegativeInteger(1)), QName('http://abc.com/test','testArcInt') )

    (against file V01)

Outputs

  • Result test: count($result) eq 1 and $result[1] instance of xs:integer and $result[1] eq -3

V-02 Generic relationship arc B->C attribute

Documentation

Inputs

  • schema: test.xsd (DTS Discovery starting point) (ID=V02)
  • Function Call: xfi:relationship-attribute( xfi:concept-relationships( QName('http://abc.com/test','B'), 'http://abc.com/role/test-link-role', 'http://abc.com/arcrole/test-arc-role', 'descendant', xs:nonNegativeInteger(1)), QName('http://abc.com/test','testArcInt') )

    (against file V02)

Outputs

  • Result test: count($result) eq 1 and $result[1] instance of xs:integer and $result[1] eq 4

V-03 Generic relationship arc A->B nonexisting attribute

Documentation

Inputs

  • schema: test.xsd (DTS Discovery starting point) (ID=V03)
  • Function Call: xfi:relationship-attribute( xfi:concept-relationships( QName('http://abc.com/test','A'), 'http://abc.com/role/test-link-role', 'http://abc.com/arcrole/test-arc-role', 'descendant', xs:nonNegativeInteger(1)), QName('','foo') )

    (against file V03)

Outputs

  • Result test: empty($result)

Revisions

Name On Details
Herm Fischer 16-09-2010 at 00:00:00 Created the test case in original form.